import request from '@/utils/request'

const BAST_URL = '/system/bidrequest'

export default {
    // 列表分页
    getloanList(page,limit,searchObj){
        return request({
            url:`${BAST_URL}/${page}/${limit}`,
            method: 'GET',
            params: searchObj
        })
    },

    getloanAllList(page,limit,searchObj){
        return request({
            url:`${BAST_URL}/all/${page}/${limit}`,
            method: 'GET',
            params: searchObj
        })
    },

    getloanTwoList(page,limit,searchObj){
        return request({
            url:`${BAST_URL}/two/${page}/${limit}`,
            method: 'GET',
            params: searchObj
        })
    },

    // 已发标
getloanpublishList(page,limit,searchObj){
        return request({
            url:`${BAST_URL}/publish/${page}/${limit}`,
            method: 'GET',
            params: searchObj
        })
    },

    

    
    
    //   根据id查找用户借款申请表
    findLoanById(id){
      return request({
          url:`${BAST_URL}/findLoanById/${id}`,
          method:'post'
      })
  },
  

  // 审核通过
  Approved(info){
    return request({
        url:`${BAST_URL}/ApprovedById1`,
        method:'post',
        data: info
    })
  },
  Approved2(info){
    return request({
        url:`${BAST_URL}/ApprovedById2`,
        method:'post',
        data: info
    })
  },
  pass(info){
    return request({
        url:`${BAST_URL}/pass`,
        method:'post',
        data: info
    })
  },
  
  


  
}